package cn.wink.springcloud;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.client.circuitbreaker.EnableCircuitBreaker;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.cloud.netflix.eureka.EnableEurekaClient;

/**
 * @author xw
 * @date 2020-05-17 0:23
 */
@SpringBootApplication
@EnableEurekaClient // eureka客户端
@EnableDiscoveryClient  // 使用服务发现
@EnableCircuitBreaker // 激活服务熔断
public class PaymentHystrix8001 {

    public static void main(String[] args) {
        SpringApplication.run(PaymentHystrix8001.class, args);
    }
}
